<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<body>
<h2>Hello World!</h2>
<img src="upload/${imgpath}" />

<form action="upload.do" method="post" enctype="multipart/form-data">

    <input name="fname" type="file" /><br/>
    <input type="submit" value="上传"/>
</form>
</body>
</html>
